package com.example.domain;

/**
 * 响应码
 */
public class ResponseCode {

    /**
     * 成功
     */
    public static final Integer SAVE_SUCCESS = 20011;
    public static final Integer DELETE_SUCCESS = 20021;
    public static final Integer UPDATE_SUCCESS = 20031;
    public static final Integer GET_SUCCESS = 20041;
    public static final Integer LOGIN_SUCCESS = 20051;
    public static final Integer LOGOUT_SUCCESS = 20061;

    /**
     * 失败
     */
    public static final Integer SAVE_ERROR = 20010;
    public static final Integer DELETE_ERROR = 20020;
    public static final Integer UPDATE_ERROR = 20030;
    public static final Integer GET_ERROR = 20040;
    public static final Integer LOGIN_ERROR = 20050;
    public static final Integer LOGOUT_ERROR = 20060;

    // 认证失败
    public static final Integer AUTHENTICATION_ERROR = 30010;
    // 授权失败
    public static final Integer AUTHORIZATION_ERROR = 30020;

}
